<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>{$title}-奇快企服</title>
		<meta name="applicable-device" content="mobile">
		<meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no,minimal-ui" name="viewport">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="keywords" content="{$title}">
        <meta name="description" content="{$desc}">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta content="telephone=no" name="format-detection">
		<!-- UC默认竖屏` UC强制全屏 -->
		<meta name="full-screen" content="yes">
		<meta name="browsermode" content="application">
		<!-- QQ强制竖屏` QQ强制全屏 -->
		<link rel="icon" href="/icon.png">

		<link rel="stylesheet" href="/static/wap/lib/mui.min.css" />

		<link rel="stylesheet" href="/static/wap/css/common.css" />
		<link rel="stylesheet" href="/static/wap/css/consult.css" />

		<link rel="stylesheet" href="/static/wap/css/reset.css" />

		<script type="text/javascript" src="/static/wap/lib/jquery-2.1.4.js"></script>
		<script type="text/javascript" src="/static/wap/lib/mui.min.js"></script>
		 <script type="text/javascript" src="/static/index/lib/template.js"></script>
	</head>
	<body>
		<header class="mui-bar mui-bar-nav">
			<a href="/wap/zxlist/" class="mui-icon mui-icon-back" style="color: #fff;"></a>
			<h1 class="mui-title">奇快企服</h1>
		</header>
		
		<div id="htmlCompany"></div>
		<script id="companyScript" type="text/html">
			<div class="nav_title" style="margin-top: 48px;">
				<span class="title_name">首页</span>
				<span class="mui-icon mui-icon-forward"></span>
				<span class="title_name">行业资讯</span>
				<span class="mui-icon mui-icon-forward"></span>
				<span class="title_name">详情</span>
			</div>
			
			<div class="consult_container"  style="margin-top: 0px;">
				<div class="detail_title">{{detail.title}}</div>
				<div class="sub_detail_title">{{detail.create_time}} 标签：{{detail.key_words}}</div>
				<div class="clearfix de_const_style">
					{{@detail.content}}
				</div>
			</div>
		
			<div class="extension_box_con">
				<div class="extension_top clearfix">
					<div class="phone_extension">全国客服热线:
						<a href="tel:">400-805-1020</a>
					</div>
					<a href="/wap/baojia/" class="mui-pull-right extension_btn">资质报价</a>
					<a href="/wap/zx/" class="mui-pull-right extension_btn">行业资讯</a>
				</div>
				<a href="/wap/zx/{{last_news.id}}" class="yellow_style ">上一篇：{{last_news.title}}</a>
				<a href="/wap/zx/{{next_news.id}}" class="yellow_style ">下一篇：{{next_news.title}}</a>
				<a href="javascript:;" class="blue_style">相关推荐：</a>
				{{each recommend itemTp i}} 
					<a href="/wap/zx/{{itemTp.id}}" class="blue_style ">
						{{itemTp.title}}
					</a>
				{{/each}}
			</div>
		</script>

		{include file="pub/footer"}

		<script type="text/javascript">
			var dId = {$id}; // 传递的id
			var baseUrl = 'https://api.qikuai100.com/';
            $(function(){
                initDate();
            });
            /**
			 * 数据详情
			 * **/
			function initDate() {
				$.ajax({
					type: "POST",
					url: baseUrl + "api/news/getOne",
					data: {
						id: dId
					},
					success: function(result) {
						if(result.ret == 0) {
							var datePage = result.data;
//							console.log(datePage)
					        var htmlCompany = template('companyScript',datePage);
					        document.getElementById('htmlCompany').innerHTML = htmlCompany;
						}
					}
				})
			}
		</script>
		
	</body>
</html>
